package com.example.test;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.retry.annotation.EnableRetry;

@SpringBootApplication(exclude={DruidDataSourceAutoConfigure.class})
@EnableRetry
@MapperScan(basePackages = {"com.example.test.dao"})
public class MyApplication  {

	// Springboot根据你添加的jar包来配置你的项目的默认配置，比如根据spring-boot-starter-web，
	// 来判断你的项目是否需要添加webmvc和tomcat，
	// 就会自动帮你配置web项目中所需要的默认配置
	// 以jar包的的形式搭建
	public static void main(String[] args) {
		SpringApplication.run(MyApplication.class, args);
	}


	// 以war包的的形式搭建
	/*protected SpringApplicationBuilder configure (SpringApplicationBuilder builder){
		return builder.configure(builder).sources(App.class);
	}*/

}
